package com.sun.boostrap.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.boostrap.mapper.EnhanceUserInfoMapper;
import com.sun.boostrap.service.EnhanceUserInfoService;
import com.sun.entity.EnhanceUserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class EnhanceUserInfoServiceImpl extends ServiceImpl<EnhanceUserInfoMapper,EnhanceUserInfo> implements EnhanceUserInfoService {

    @Resource
    private EnhanceUserInfoMapper enhanceUserInfoMapper;


    @Cacheable(value = "adminCache",key = "#root.method.name")
    @Override
    public List<EnhanceUserInfo> selectUserInfoList() {
        log.info("查询了数据库>>>>>>>>>>");
        return enhanceUserInfoMapper.findAllUserInfo();
    }


}
